//
//  LCMessageViewController.swift
//  SwiftWeiBo
//
//  Created by LiCheng on 2017/2/8.
//  Copyright © 2017年 LiCheng. All rights reserved.
//

import UIKit

class LCMessageViewController: LCBaseViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        title = "第\(childViewControllers.count)个"

    }

    @objc fileprivate func showClick() {

        let vc = LCMessageViewController()
        navigationController?.pushViewController(vc, animated: true)
    }
}

extension LCMessageViewController {

    override func setupTableView() {
        super.setupTableView()

        // 设置导航栏右侧按钮
        navItem.rightBarButtonItem = UIBarButtonItem(title: "下一个", target: self, action: #selector(showClick))
    }
}
